<template>
  <router-view />
</template>

<script setup lang="ts">
import commonApi from '@/api/commonApi.js'
import { useRouter } from 'vue-router'

const router = useRouter ()
window.postMessage ({ payload: 'removeLoading' }, '*')
commonApi.getAppSetting ().then ((result) => {
  console.log ('app - ', result, router)
  localStorage.setItem ('app', result.path)
  if (result && !result.path) {
    router.push ({ path: '/welcome' })
  }
})
</script>

<style lang="less"></style>
